package com.acsior.hibernate.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.acsior.dac.impl.hibernate.vo.GeneratorKey;
import com.acsior.dac.impl.hibernate.vo.HibernatePersistantIntegerIdVO;

/**
 * Application entity. @author MyEclipse Persistence Tools <b><i>powered by
 * Belev</i></b>
 */
@Entity
@Table(name = "applications")
@GeneratorKey(tableName = "applications")
public class ApplicationVO extends HibernatePersistantIntegerIdVO {

	private static final long serialVersionUID = -5747188415903525563L;

	@Column(name = "name", nullable = false, length = 1000)
	private String name;

	@Column(name = "price", nullable = false, scale = 4)
	private double price;

	/** default constructor */
	public ApplicationVO() {
		super();
	}

	/** @return the name */
	public String getName() {
		return this.name;
	}

	/** @return the price */
	public double getPrice() {
		return this.price;
	}

	/** @param name */
	public void setName(String name) {
		this.name = name;
	}

	/** @param price */
	public void setPrice(double price) {
		this.price = price;
	}

}